<%@ Page Language="C#" MasterPageFile="app-frame.master" AutoEventWireup="true" CodeFile="Workflow_Item.aspx.cs"
    EnableEventValidation="false" Inherits="Workflow_Item" Title="Untitled Page" %>

<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder3" runat="Server">

    <script language="JavaScript" type="text/javascript" src="scripts/Workflow_Item.js"></script><%--Added by Jayashree on 12-Sep-2014,for js file--%>


            <table style="width: 100%" cellspacing="0" cellpadding="0" border="0">
                <tbody>
                    <tr><td><asp:Label runat="server" ID="lblmessage" CssClass="controlFont"></asp:Label></td></tr>
                    <tr>
                        <td style="font-size: 10pt; font-family: Verdana; height: 16px" class="pgForm_title">
                            Workflow Item
                        </td>
                        <%--<a href="Workflow_History.aspx?mn=87&pgs_id=workflow_history"><font color=blue>
                        Workflow History</font></a>--%>
                        <%--<asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/app_frame/Images/report1.gif" AlternateText="View Workflow History" ToolTip="View Workflow History" CausesValidation="False" OnClientClick='openHistory("div_his"); return false;' /></td>--%>
                        <%--                    <td>
                        <asp:LinkButton ID="lnkHistory" runat="server">View Workflow History</asp:LinkButton>
                    </td>--%>
                    </tr>
                    <tr>
                    </tr>
                    <tr>
                    </tr>
                </tbody>
            </table>
    <asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="UpdatePanel1"
        DisplayAfter="0">
        <ProgressTemplate>
            <asp:Image ID="Image1" runat="server" ImageUrl="Images/load.gif" />
            
            <asp:Label ID="lblProgress" runat="server" Text="Processing the request..." CssClass="controlFont"></asp:Label>
        </ProgressTemplate>
    </asp:UpdateProgress>
                <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <table style="width: 100%" cellspacing="0" cellpadding="0" border="0" runat="server" id="tblmain">
                <tbody>
                    <tr>
                        <td style="vertical-align: bottom" align="left">
                            <table style="width: 100%" border="0">
                                <tbody>
                                <tr>
                                <td id="tdheaderfilter" runat="server" align="right" style="width: 20%;"><b><asp:Label ID="lblobject" runat="server" Text="Object:" class="pgForm_fld_text"
                                                ></asp:Label></b>&nbsp;</td><td align="left" style="width: 80%;"><asp:DropDownList ID="ddobject" runat="server" autopostback="true" enableviewstate ="true" OnChange= "resettoZero();" CssClass="controlFont"></asp:DropDownList></td>
                                </tr>
                                <tr><td align="right" style="width: 20%;"><b><asp:Label ID="lblcreatedby" runat="server" Text="Record Created By:" class="pgForm_fld_text"></asp:Label></b></td><td align="left" style="width: 80%;"><asp:DropDownList ID="ddcreatedby" runat="server" autopostback="true" enableviewstate ="true" OnChange= "resettoZero();" CssClass="controlFont"></asp:DropDownList></td></tr>
                                <tr><td align="right" style="width: 20%;"><b><asp:Label ID="lblcreatedat" runat="server" Text="Record Created Date:" class="pgForm_fld_text"></asp:Label></b></td><td align="left" style="width: 80%;"><asp:DropDownList ID="ddcreatedat" runat="server" autopostback="true" enableviewstate ="true" OnChange= "resettoZero();" CssClass="controlFont"></asp:DropDownList></td></tr>
                                    <tr>
                                        <td align="left">
                                            <asp:Label ID="lbl_message" runat="server" CssClass="defaultFont" Font-Size="X-Small"
                                                ForeColor="Black"></asp:Label>
                                            <asp:Button ID="btnApproveAll" runat="server" OnClientClick="javascript:getComm();return false;"
                                                Text="Approve All" UseSubmitBehavior="False" Enabled="False" />
                                        </td>
                                        <td align="right">
                                            <a href='Workflow_History.aspx?mn=e66ae84c29770189&pgs_id=eed8935a7731fd44"'><span style="font-size: 9pt;
                                                color: blue;" class="defaultFont">Workflow History</span></a>
                                            <asp:ImageButton ID="History" runat="server" AlternateText="View Workflow History"
                                                ToolTip="View Workflow History" ImageUrl="Images/history_notes.gif" PostBackUrl="Workflow_History.aspx?pgs_id=eed8935a7731fd44">
                                            </asp:ImageButton></td>
                                    </tr>
                                </tbody>
                            </table>
                        </td>
                        <td valign="top" width="3">
                            &nbsp;</td>
                    </tr>
                </tbody>
            </table>
            <%--            <table border="0" cellpadding="0" cellspacing="0" style="width: 100%">
                <tr class="Grid_Header">
                    <td>Description</td>
                    <td>Status</td>
                    <td>Dated</td>
                    <td style="width: 30pt">&nbsp;</td>
                </tr>
            </table>--%>
            <asp:Table ID="Table1" runat="server" Width="100%" CellPadding="0" CellSpacing="0"
                BorderStyle="None">
                <%--<asp:TableRow CssClass="Grid_Header">
            <asp:TableCell HorizontalAlign=Left>Workitem From</asp:TableCell>
            <asp:TableCell HorizontalAlign=Left>Description</asp:TableCell>
            <asp:TableCell HorizontalAlign=Left>Status</asp:TableCell>
            <asp:TableCell HorizontalAlign=Left>Comments</asp:TableCell>
            <asp:TableCell HorizontalAlign=Left>Dated</asp:TableCell>
            <asp:TableCell Width="90pt"></asp:TableCell>
            </asp:TableRow>--%>
            </asp:Table>
            <table style="width: 100%" cellspacing="0" cellpadding="0" border="0" runat="Server" id="tblbtn">
                <tbody>
                    <tr class="displaygridbottom" valign="middle">
                        <td  class="controlFont" valign="middle" align="left" style="font-family: Verdana; font-size: 11px;vertical-align:middle;" height="21px">
                            <asp:Label height="21px" ID="lblRecordNoInfo" runat="server"></asp:Label></td>
                        <td  class="controlFont" valign="middle" align="right" style="font-size: 11px; font-family: Verdana;" height="21px">
                            <asp:Label ID="lblPageNoInfo" runat="server" Text=""></asp:Label>&nbsp;</td>
                        <td   class="controlFont" align="right" valign="middle" height="21px">
                            <asp:ImageButton ID="btnFirst" runat="server" CausesValidation="False" ImageUrl="Images/first.gif" OnClientClick="javascript:navigatePagesSetValue('F');" />
                            <asp:ImageButton OnClientClick="javascript:navigatePages(-1);" ID="btnPrev" runat="server" ImageUrl="Images/back.gif" CausesValidation="False" OnClick="btnPrev_Click"/>
                            <asp:ImageButton OnClientClick="javascript:navigatePages(1);" ID="btnNext" runat="server" ImageUrl="Images/front.gif" CausesValidation="False" OnClick="btnNext_Click"/>
                            <asp:ImageButton ID="btnLast" runat="server" CausesValidation="False" ImageUrl="Images/last.gif" OnClientClick="javascript:navigatePagesSetValue('L');" />
                            <input id="hihCurrentPageId" runat="Server" type="hidden" value="0" />
                            &nbsp;</td>
                    </tr>
                </tbody>
            </table>
            <%--<table border="0" cellpadding="0" cellspacing="0" style="width: 100%" runat=server id="tbl_Display">
                <tr>
                    <td id="td1" style="width: 100px">
                    </td>
                </tr>
            </table>--%>
            <div style="border-right: gray 1px solid; padding-right: 3px; border-top: gray 1px solid;
                display: none; padding-left: 3px; filter: alpha(opacity=70); padding-bottom: 3px;
                border-left: gray 1px solid; padding-top: 3px; border-bottom: gray 1px solid;
                position: absolute; background-color: #eaeaea; opacity: 0.7" id="bkPanel">
            </div>
            <div style="padding-right: 10px; display: none; padding-left: 10px; z-index: 2; filter: alpha(opacity=100);
                left: 249px; padding-bottom: 10px; width: 300px; padding-top: 10px; position: absolute;
                top: 97px; height: 138px; opacity: 1" id="div_comments" class="WizardDiv">
                <table width="100%">
                    <tbody>
                        <tr>
                            <td style="height: 25px" class="Grid_header" align="center">
                                <span id="comments_title">&nbsp;<asp:Label ID="lblComments" runat="server" Text="Comments"></asp:Label></span></td>
                        </tr>
                    </tbody>
                </table>
                <table style="font-size: 11px;" class="defaultFont" width="100%" border="0">
                    <tbody>
                        <tr>
                            <td>
                                <asp:TextBox ID="txtComments" runat="server" Width="274px" CssClass="defaultFont" Font-Size="X-Small"
                                    Height="75px" TextMode="MultiLine" MaxLength="255"></asp:TextBox>
                            </td>
                        </tr>
                    </tbody>
                </table>
                <table style="width: 100%">
                    <tbody>
                        <tr>
                            <td style="width: 100%" align="right">
                            &nbsp;
                            <span style="font-size: 9pt; vertical-align:text-top; color: red;" class="defaultFont" id="message">&nbsp;</span>
                            <asp:Button ID="btnSaveComments" OnClick="btnSaveComments_Click" runat="server"
                                    Text="  Ok  " OnClientClick="return validate();"></asp:Button>
                                <asp:Button ID="btnCancel" runat="server" Text="Cancel" OnClientClick="Cancel();"></asp:Button>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <!--<span style="font-size: 9pt; vertical-align:text-top; color: red; font-family: Arial" id="message">&nbsp;</span>--></td>
                        </tr>
                    </tbody>
                </table>
            </div>
            <div style="border-right: gray 1px solid; padding-right: 3px; border-top: gray 1px solid;
                display: none; padding-left: 3px; filter: alpha(opacity=70); padding-bottom: 3px;
                border-left: gray 1px solid; padding-top: 3px; border-bottom: gray 1px solid;
                position: absolute; background-color: #eaeaea; opacity: 0.7" id="div_comm">
            </div>
            <div style="padding-right: 10px; display: none; padding-left: 10px; z-index: 2; filter: alpha(opacity=100);
                left: 249px; padding-bottom: 10px; width: 300px; padding-top: 10px; position: absolute;
                top: 97px; height: 138px; opacity: 1" id="div_comm1" class="WizardDiv">
                <table width="100%">
                    <tbody>
                        <tr>
                            <td style="height: 25px" class="Grid_header" align="center">
                                <span id="comments">&nbsp;<asp:Label ID="lblComm" runat="server" Text="Approve All with comment"></asp:Label></span></td>
                        </tr>
                    </tbody>
                </table>
                <table style="font-size: 11px;" class="defaultFont" width="100%" border="0">
                    <tbody>
                        <tr>
                            <td>
                                <asp:TextBox ID="txtComm" runat="server" Width="274px" CssClass="defaultFont" Font-Size="X-Small"
                                    Height="75px" TextMode="MultiLine" MaxLength="255"></asp:TextBox>
                            </td>
                        </tr>
                    </tbody>
                </table>
                <table style="width: 100%">
                    <tbody>
                        <tr>
                            <td style="width: 100%" align="right">
                            <span style="font-size: 9pt; vertical-align:text-top; color: red;" class="defaultFont" id="message2">&nbsp;</span>
                                &nbsp;<asp:Button ID="btnComm" OnClick="btnApproveAll_Click" runat="server" Text="  Ok  "
                                    OnClientClick="return validate2();"></asp:Button>
                                <asp:Button ID="Button2" runat="server" Text="Cancel" OnClientClick="Cancel2();"></asp:Button>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <!--<span style="font-size: 9pt; vertical-align:text-top; color: red; font-family: Arial" id="message2">&nbsp;</span>--></td>
                        </tr>
                    </tbody>
                </table>
            </div>
            <%--            <div id="div_history" style="display: none; padding: 10px 6px 10px 6px; z-index: 2; width: 300px;
                padding: 10px; position: absolute; top: 97px; left: 249px; filter: alpha(opacity=100);
                opacity: 1; height: 157px;" class="WizardDiv">
                <table id="tbl_history" runat="server">
                </table>
            </div>--%>
            <asp:HiddenField ID="hfComments" runat="server"></asp:HiddenField>
            <asp:HiddenField ID="hf_currentpage" runat="server" Value="0"></asp:HiddenField>
            <asp:HiddenField ID="hf_af_row_id" runat="server"></asp:HiddenField>
            <asp:HiddenField ID="hf_Status" runat="server"></asp:HiddenField>
            <asp:HiddenField ID="hf_selected" runat="server" />
            <asp:HiddenField ID="hfSort" runat="server" />
            <asp:HiddenField ID="hfSortOrder" runat="server" />
           
        </ContentTemplate>
    </asp:UpdatePanel>
     <asp:HiddenField ID="hfddobject" runat="server" />
            <asp:HiddenField ID="hfddcreatedby" runat="server" />
            <asp:HiddenField ID="hfddcreatedat" runat="server" />
</asp:Content>
